package org.mokusakura.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.sql.Timestamp;

public class PhoneVerifyCode implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer userId;
    private String verifyCode;
    private Boolean isActive;
    private Timestamp expiryTime;

    public Timestamp getExpiryTime() {
        return expiryTime;
    }

    public PhoneVerifyCode setExpiryTime(Timestamp expiryTime) {
        this.expiryTime = expiryTime;
        return this;
    }

    public Long getId() {
        return id;
    }

    public PhoneVerifyCode setId(Long id) {
        this.id = id;
        return this;
    }

    public Integer getUserId() {
        return userId;
    }

    public PhoneVerifyCode setUserId(Integer userId) {
        this.userId = userId;
        return this;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public PhoneVerifyCode setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
        return this;
    }

    public Boolean getActive() {
        return isActive;
    }

    public PhoneVerifyCode setActive(Boolean active) {
        isActive = active;
        return this;
    }
}
